package com.learn.multDataSource.model.elastic;

import java.util.ArrayList;
import java.util.List;

public class TRcenumExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public TRcenumExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andBrokeridIsNull() {
            addCriterion("BrokerID is null");
            return (Criteria) this;
        }

        public Criteria andBrokeridIsNotNull() {
            addCriterion("BrokerID is not null");
            return (Criteria) this;
        }

        public Criteria andBrokeridEqualTo(String value) {
            addCriterion("BrokerID =", value, "brokerid");
            return (Criteria) this;
        }

        public Criteria andBrokeridNotEqualTo(String value) {
            addCriterion("BrokerID <>", value, "brokerid");
            return (Criteria) this;
        }

        public Criteria andBrokeridGreaterThan(String value) {
            addCriterion("BrokerID >", value, "brokerid");
            return (Criteria) this;
        }

        public Criteria andBrokeridGreaterThanOrEqualTo(String value) {
            addCriterion("BrokerID >=", value, "brokerid");
            return (Criteria) this;
        }

        public Criteria andBrokeridLessThan(String value) {
            addCriterion("BrokerID <", value, "brokerid");
            return (Criteria) this;
        }

        public Criteria andBrokeridLessThanOrEqualTo(String value) {
            addCriterion("BrokerID <=", value, "brokerid");
            return (Criteria) this;
        }

        public Criteria andBrokeridLike(String value) {
            addCriterion("BrokerID like", value, "brokerid");
            return (Criteria) this;
        }

        public Criteria andBrokeridNotLike(String value) {
            addCriterion("BrokerID not like", value, "brokerid");
            return (Criteria) this;
        }

        public Criteria andBrokeridIn(List<String> values) {
            addCriterion("BrokerID in", values, "brokerid");
            return (Criteria) this;
        }

        public Criteria andBrokeridNotIn(List<String> values) {
            addCriterion("BrokerID not in", values, "brokerid");
            return (Criteria) this;
        }

        public Criteria andBrokeridBetween(String value1, String value2) {
            addCriterion("BrokerID between", value1, value2, "brokerid");
            return (Criteria) this;
        }

        public Criteria andBrokeridNotBetween(String value1, String value2) {
            addCriterion("BrokerID not between", value1, value2, "brokerid");
            return (Criteria) this;
        }

        public Criteria andEnumtypeidIsNull() {
            addCriterion("EnumTypeID is null");
            return (Criteria) this;
        }

        public Criteria andEnumtypeidIsNotNull() {
            addCriterion("EnumTypeID is not null");
            return (Criteria) this;
        }

        public Criteria andEnumtypeidEqualTo(String value) {
            addCriterion("EnumTypeID =", value, "enumtypeid");
            return (Criteria) this;
        }

        public Criteria andEnumtypeidNotEqualTo(String value) {
            addCriterion("EnumTypeID <>", value, "enumtypeid");
            return (Criteria) this;
        }

        public Criteria andEnumtypeidGreaterThan(String value) {
            addCriterion("EnumTypeID >", value, "enumtypeid");
            return (Criteria) this;
        }

        public Criteria andEnumtypeidGreaterThanOrEqualTo(String value) {
            addCriterion("EnumTypeID >=", value, "enumtypeid");
            return (Criteria) this;
        }

        public Criteria andEnumtypeidLessThan(String value) {
            addCriterion("EnumTypeID <", value, "enumtypeid");
            return (Criteria) this;
        }

        public Criteria andEnumtypeidLessThanOrEqualTo(String value) {
            addCriterion("EnumTypeID <=", value, "enumtypeid");
            return (Criteria) this;
        }

        public Criteria andEnumtypeidLike(String value) {
            addCriterion("EnumTypeID like", value, "enumtypeid");
            return (Criteria) this;
        }

        public Criteria andEnumtypeidNotLike(String value) {
            addCriterion("EnumTypeID not like", value, "enumtypeid");
            return (Criteria) this;
        }

        public Criteria andEnumtypeidIn(List<String> values) {
            addCriterion("EnumTypeID in", values, "enumtypeid");
            return (Criteria) this;
        }

        public Criteria andEnumtypeidNotIn(List<String> values) {
            addCriterion("EnumTypeID not in", values, "enumtypeid");
            return (Criteria) this;
        }

        public Criteria andEnumtypeidBetween(String value1, String value2) {
            addCriterion("EnumTypeID between", value1, value2, "enumtypeid");
            return (Criteria) this;
        }

        public Criteria andEnumtypeidNotBetween(String value1, String value2) {
            addCriterion("EnumTypeID not between", value1, value2, "enumtypeid");
            return (Criteria) this;
        }

        public Criteria andEnumvalueIsNull() {
            addCriterion("EnumValue is null");
            return (Criteria) this;
        }

        public Criteria andEnumvalueIsNotNull() {
            addCriterion("EnumValue is not null");
            return (Criteria) this;
        }

        public Criteria andEnumvalueEqualTo(String value) {
            addCriterion("EnumValue =", value, "enumvalue");
            return (Criteria) this;
        }

        public Criteria andEnumvalueNotEqualTo(String value) {
            addCriterion("EnumValue <>", value, "enumvalue");
            return (Criteria) this;
        }

        public Criteria andEnumvalueGreaterThan(String value) {
            addCriterion("EnumValue >", value, "enumvalue");
            return (Criteria) this;
        }

        public Criteria andEnumvalueGreaterThanOrEqualTo(String value) {
            addCriterion("EnumValue >=", value, "enumvalue");
            return (Criteria) this;
        }

        public Criteria andEnumvalueLessThan(String value) {
            addCriterion("EnumValue <", value, "enumvalue");
            return (Criteria) this;
        }

        public Criteria andEnumvalueLessThanOrEqualTo(String value) {
            addCriterion("EnumValue <=", value, "enumvalue");
            return (Criteria) this;
        }

        public Criteria andEnumvalueLike(String value) {
            addCriterion("EnumValue like", value, "enumvalue");
            return (Criteria) this;
        }

        public Criteria andEnumvalueNotLike(String value) {
            addCriterion("EnumValue not like", value, "enumvalue");
            return (Criteria) this;
        }

        public Criteria andEnumvalueIn(List<String> values) {
            addCriterion("EnumValue in", values, "enumvalue");
            return (Criteria) this;
        }

        public Criteria andEnumvalueNotIn(List<String> values) {
            addCriterion("EnumValue not in", values, "enumvalue");
            return (Criteria) this;
        }

        public Criteria andEnumvalueBetween(String value1, String value2) {
            addCriterion("EnumValue between", value1, value2, "enumvalue");
            return (Criteria) this;
        }

        public Criteria andEnumvalueNotBetween(String value1, String value2) {
            addCriterion("EnumValue not between", value1, value2, "enumvalue");
            return (Criteria) this;
        }

        public Criteria andEnumnameIsNull() {
            addCriterion("EnumName is null");
            return (Criteria) this;
        }

        public Criteria andEnumnameIsNotNull() {
            addCriterion("EnumName is not null");
            return (Criteria) this;
        }

        public Criteria andEnumnameEqualTo(String value) {
            addCriterion("EnumName =", value, "enumname");
            return (Criteria) this;
        }

        public Criteria andEnumnameNotEqualTo(String value) {
            addCriterion("EnumName <>", value, "enumname");
            return (Criteria) this;
        }

        public Criteria andEnumnameGreaterThan(String value) {
            addCriterion("EnumName >", value, "enumname");
            return (Criteria) this;
        }

        public Criteria andEnumnameGreaterThanOrEqualTo(String value) {
            addCriterion("EnumName >=", value, "enumname");
            return (Criteria) this;
        }

        public Criteria andEnumnameLessThan(String value) {
            addCriterion("EnumName <", value, "enumname");
            return (Criteria) this;
        }

        public Criteria andEnumnameLessThanOrEqualTo(String value) {
            addCriterion("EnumName <=", value, "enumname");
            return (Criteria) this;
        }

        public Criteria andEnumnameLike(String value) {
            addCriterion("EnumName like", value, "enumname");
            return (Criteria) this;
        }

        public Criteria andEnumnameNotLike(String value) {
            addCriterion("EnumName not like", value, "enumname");
            return (Criteria) this;
        }

        public Criteria andEnumnameIn(List<String> values) {
            addCriterion("EnumName in", values, "enumname");
            return (Criteria) this;
        }

        public Criteria andEnumnameNotIn(List<String> values) {
            addCriterion("EnumName not in", values, "enumname");
            return (Criteria) this;
        }

        public Criteria andEnumnameBetween(String value1, String value2) {
            addCriterion("EnumName between", value1, value2, "enumname");
            return (Criteria) this;
        }

        public Criteria andEnumnameNotBetween(String value1, String value2) {
            addCriterion("EnumName not between", value1, value2, "enumname");
            return (Criteria) this;
        }

        public Criteria andEnumdescIsNull() {
            addCriterion("EnumDesc is null");
            return (Criteria) this;
        }

        public Criteria andEnumdescIsNotNull() {
            addCriterion("EnumDesc is not null");
            return (Criteria) this;
        }

        public Criteria andEnumdescEqualTo(String value) {
            addCriterion("EnumDesc =", value, "enumdesc");
            return (Criteria) this;
        }

        public Criteria andEnumdescNotEqualTo(String value) {
            addCriterion("EnumDesc <>", value, "enumdesc");
            return (Criteria) this;
        }

        public Criteria andEnumdescGreaterThan(String value) {
            addCriterion("EnumDesc >", value, "enumdesc");
            return (Criteria) this;
        }

        public Criteria andEnumdescGreaterThanOrEqualTo(String value) {
            addCriterion("EnumDesc >=", value, "enumdesc");
            return (Criteria) this;
        }

        public Criteria andEnumdescLessThan(String value) {
            addCriterion("EnumDesc <", value, "enumdesc");
            return (Criteria) this;
        }

        public Criteria andEnumdescLessThanOrEqualTo(String value) {
            addCriterion("EnumDesc <=", value, "enumdesc");
            return (Criteria) this;
        }

        public Criteria andEnumdescLike(String value) {
            addCriterion("EnumDesc like", value, "enumdesc");
            return (Criteria) this;
        }

        public Criteria andEnumdescNotLike(String value) {
            addCriterion("EnumDesc not like", value, "enumdesc");
            return (Criteria) this;
        }

        public Criteria andEnumdescIn(List<String> values) {
            addCriterion("EnumDesc in", values, "enumdesc");
            return (Criteria) this;
        }

        public Criteria andEnumdescNotIn(List<String> values) {
            addCriterion("EnumDesc not in", values, "enumdesc");
            return (Criteria) this;
        }

        public Criteria andEnumdescBetween(String value1, String value2) {
            addCriterion("EnumDesc between", value1, value2, "enumdesc");
            return (Criteria) this;
        }

        public Criteria andEnumdescNotBetween(String value1, String value2) {
            addCriterion("EnumDesc not between", value1, value2, "enumdesc");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}